package controller

import (
	"Gin-Server-01/com/server/core/tools/webSocketTool"
	"github.com/gin-gonic/gin"
)

var msg = webSocketTool.WsMsg{}

//r.GET("/ws", webSocketTool.WsHandlerPlus(&msg))

// Ws
// @Title ws协议聊天功能
// @Schemes ws
// @Summary ws协议
// @Tags ws
// @Description ws协议
// @Return: gin.HandlerFunc
// @Router /ws [get]
func Ws(r *gin.Engine) {
	r.GET("/ws", webSocketTool.WsHandlerPlus(&msg))
}
